package com.speed_run.vo;

import com.speed_run.global.DeviceType;
import org.apache.shiro.authc.UsernamePasswordToken;

import com.speed_run.global.LoginType;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;




public class NameAndPassWord {

	@NotEmpty
	private String userName;

	@NotEmpty
	@Length(max=16)
	private String passWord;

	/**
	 * 设备类型安卓还是ios/android
	 */

	private String  type;

	/**
	 * 设备信息：当前设备具体机型型号
	 */
	private String  device = "";

	/**
	 * 设备唯一信息
	 */
	private String  macAddress = "";

	/**
	 * 版本号
	 */
	private String version = "";

	/**
	 * 登陆方式手机，微信
	 */
	private String loginType = "";


	public   UsernamePasswordToken getNP(){
		return new  UsernamePasswordToken(userName, passWord);
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDevice() {
		return device;
	}

	public void setDevice(String device) {
		this.device = device;
	}

	public String getMacAddress() {
		return macAddress;
	}

	public void setMacAddress(String macAddress) {
		this.macAddress = macAddress;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getLoginType() {
		return loginType;
	}

	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}
}
